|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.webphotos.gui.util.fest.WebPhotosDelegate
public class WebPhotosDelegate
Constructor Summary | |
---|---|
WebPhotosDelegate()
|
Method Summary | |
---|---|
void |
addPhotosToAlbumAndCheck(String[] fileNames,
String buttonName,
File folderNameToVerify,
String fileDialogName)
|
void |
checkButtonHasText(String button,
String textShown)
Tests Button Text |
void |
checkComboBoxHasText(String comboBoxName,
String textShown)
Tests Combox Text |
void |
checkIsButtonEnabled(String button)
Tests Button |
void |
checkNewAlbum()
It validates album insertion |
void |
fillAlbumForm(String albumTitle,
String albumDescription,
String categoryName,
Map<String,String[]> photoData)
Fill up a new album using a pre-defined category, credits and added photos |
void |
fillModalWithText(String buttonName,
String modalTittle,
String data)
Writes text to a Modal Dialog |
static WebPhotosDelegate |
getWebPhotosDelegate()
Returns the Delegate |
void |
setUp()
Setup for One Test |
void |
setUpClass()
Prepare all tests |
void |
tearDownClass()
Dispose all tests |
void |
validateMainWindowIsPresent()
Tests mainWindow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebPhotosDelegate()
Method Detail |
---|
public void setUpClass() throws Exception
WebPhotosDelegate
setUpClass
in interface WebPhotosDelegate
Exception
- no errors allowedpublic void addPhotosToAlbumAndCheck(String[] fileNames, String buttonName, File folderNameToVerify, String fileDialogName) throws RuntimeException
addPhotosToAlbumAndCheck
in interface WebPhotosDelegate
RuntimeException
- no errors allowedpublic void checkButtonHasText(String button, String textShown) throws RuntimeException
WebPhotosDelegate
checkButtonHasText
in interface WebPhotosDelegate
RuntimeException
- no errors allowedpublic void checkComboBoxHasText(String comboBoxName, String textShown) throws RuntimeException
WebPhotosDelegate
checkComboBoxHasText
in interface WebPhotosDelegate
RuntimeException
- no errors allowedpublic void checkIsButtonEnabled(String button) throws RuntimeException
WebPhotosDelegate
checkIsButtonEnabled
in interface WebPhotosDelegate
RuntimeException
- no errors allowedpublic void fillModalWithText(String buttonName, String modalTittle, String data) throws RuntimeException
WebPhotosDelegate
fillModalWithText
in interface WebPhotosDelegate
RuntimeException
- no errors allowedpublic void tearDownClass() throws Exception
WebPhotosDelegate
tearDownClass
in interface WebPhotosDelegate
Exception
- no errors allowedpublic void validateMainWindowIsPresent()
WebPhotosDelegate
validateMainWindowIsPresent
in interface WebPhotosDelegate
public void setUp()
setUp
in interface WebPhotosDelegate
public static WebPhotosDelegate getWebPhotosDelegate()
public void fillAlbumForm(String albumTitle, String albumDescription, String categoryName, Map<String,String[]> photoData)
WebPhotosDelegate
fillAlbumForm
in interface WebPhotosDelegate
public void checkNewAlbum()
WebPhotosDelegate
checkNewAlbum
in interface WebPhotosDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |